/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package traitements;

import bdd.QueriesClients;
import beans.CliAdr;
import beans.CliPhones;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author CDI215
 */
public class AfficherCompte {

    private ArrayList<CliAdr> listAdresse;
    private ArrayList<CliPhones> listPhone;

//Queries à revoir (joijnture pour avoir le type...)   
    
    public ArrayList getAdresses(int id) {
        try {
            QueriesClients tmp = new QueriesClients();
            listAdresse = tmp.listerAdrActif(id);
                        
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(AfficherCompte.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(AfficherCompte.class.getName()).log(Level.SEVERE, null, ex);
        }
        return listAdresse;
    }
    
    public ArrayList getPhones(int id) {
        try {
            QueriesClients tmp = new QueriesClients();
            listPhone = tmp.listerPhonesActif(id);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(AfficherCompte.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(AfficherCompte.class.getName()).log(Level.SEVERE, null, ex);
        }
        return listPhone;
    }
    
    
}
